package com.smartsaas.ugclivii.cd;

import com.smartsaas.ugclivii.ui.UiContext;
import nxopen.NXException;
import nxopen.blockstyler.Node;
import nxopen.blockstyler.Tree;

import java.rmi.RemoteException;

public class MlTreeBeginLabelEditHandler implements Tree.OnBeginLabelEditCallback {
    @Override
    public Tree.BeginLabelEditState onBeginLabelEditCallback(Tree tree, Node node, int columnID) throws NXException, RemoteException {
        if (columnID==1||(columnID>=3)){
            return Tree.BeginLabelEditState.ALLOW;
        }
        return Tree.BeginLabelEditState.DISALLOW;
    }
}
